require "Common/define"
require "Common/functions"
require "class"
require "Network/LoginHandler"
require "Network/GameHandler"

--管理器--
Game = {};
local this = Game;

require "View/LoginPanel"
require "View/LobbyPanel"
require "View/GamePanel"
require "View/OverPanel"

require "Game/Player"
require "Game/Card"
require "Game/ResourcesFactory"

--初始化完成，发送链接服务器信息--
function Game.OnInitOK()
    
    --连接网络  
    AppConst.SocketPort = 8500;--端口号

   AppConst.SocketAddress = "127.0.0.1";-- IP地址
    --AppConst.SocketAddress = "192.168.105.3";
    networkMgr:SendConnect();

    --加载登录页面
    LoginPanel.New();
end
